<?php
$mysqli= new mysqli("localhost","root","root","db_yemaijiu");
if($mysqli->connect_errno){
    die();
}
$shouji=$_POST["shouji"];
$userpass=$_POST["userpass"];
$result=$mysqli->query("insert into t_users (password,shouji) values ('{$userpass}','{$shouji}')");

$data=$mysqli->affected_rows;
echo strval($data);